{__NOLAYOUT__}
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>跳转提示</title>
  <style type="text/css">
    *{ padding: 0; margin: 0; }
    body{ background: #f5f5f5; font-family: "Microsoft Yahei","Helvetica Neue",Helvetica,Arial,sans-serif; color: #333; font-size: 16px; }
    button{display: inline-block; box-shadow: rgba(174, 222, 244, 0.8) 0px 0px 2px, rgba(0, 0, 0, 0.0470588) 0px 0px 0px 1px inset; background-color: rgb(174, 222, 244);}
  </style>
  <link rel="stylesheet" href="__PUBLIC__/sweetalert.min.css"/>
</head>
<body>
  <div class="sweet-overlay" tabindex="-1" style="opacity: 1.04;display:block;"></div>
  <div class="sweet-alert" style="display:block;margin-top:-176px;">
    <?php switch ($code) {?>
    <?php case 1:?>
    <!-- 成功提示 -->
    <div class="sa-icon sa-success animate" style="display:block;">
      <span class="sa-line sa-tip animateSuccessTip"></span>
      <span class="sa-line sa-long animateSuccessLong"></span>
      <div class="sa-placeholder"></div>
      <div class="sa-fix"></div>
    </div>
    <h2>success</h2>
    <?php break;?>
    <?php case 0:?>
    <!-- 失败提示 -->
    <div class="sa-icon sa-error animateErrorIcon" style="display:block;">
      <span class="sa-x-mark animateXMark">
        <span class="sa-line sa-left"></span>
        <span class="sa-line sa-right"></span>
      </span>
    </div>
    <h2>error</h2>
    <?php break;?>
    <?php } ?>
    <p style="display:block;"><?php echo(strip_tags($msg));?></p>
    <div class="sa-button-container">
      页面自动<a id="href" href="<?php echo($url);?>"><button class="confirm">跳转</button></a>等待时间： <b id="wait"><?php echo($wait);?></b>
    </div>
  </div>
<script type="text/javascript">
    (function(){
        var wait = document.getElementById('wait'),
            href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            if(time <= 0) {
                location.href = href;
                clearInterval(interval);
            };
        }, 1000);
    })();
</script>
</body>
</html>
